#ifndef APP_MAIN_MODEL_H
#define APP_MAIN_MODEL_H

#include <WString.h>

#include "hal_rtc_device.h"
#include "webapi_amap_location.h"
#include "webapi_amap_weather.h"

struct AppSensorModel {
  float temp{0.0f};
  float humi{0.0f};
};

struct AppConfigModel {
  String amapApiKey;
  String wifiSsid;
  String wifiPsk;
};

struct AppLocationModel : public webapi::GeoLocation {
  int adcode{0};
  webapi::AmapLocation origin;
};

using AppRealtimeWeather = webapi::AmapRealtimeWeather;
using AppForecastWeather = webapi::AmapForecastWeather;

struct AppDateTime {
  HalRtcDevice::Date date;
  HalRtcDevice::Time time;
};

#endif  // APP_MAIN_MODEL_H